header.desktop {
    justify-content: space-between;
    flex-direction: column;
    background-color: #fff;
    align-items: center;
    padding: 1em 0;
    width: 100%;
    gap: 1em;
}
header.phone {
    display: none;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0.5em;
    gap: 0.5em;
}

/* ELEMENTS */
header.desktop .container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 0.5em;
}
header.desktop.top {
    position: relative;
    z-index: 1;
}
header.desktop.bottom {
    background-color: var(--colorMain);
    box-shadow: 0 10px 45px 0px #0000003b;
    padding: 0.5em 0;
}
header.desktop p {
    color:#000;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
}
header.desktop .left {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header.desktop .social {
    display: flex;
    gap: 1em;
}
header.desktop .social a {
    position: relative;
}
header.desktop .social a img {
    width: 30px;
}
header.desktop .social a p {
    background-color: var(--color, --colorLightPrimary);
    transition: all 0.3s ease-in;
    position: absolute;
    color: #fff;

    padding: 0.2em 0.5em;
    border-radius: 8px;
    bottom: 105%;
    left: -50%;
    opacity: 0;
}
header.desktop .social a:hover p {
    opacity: 1;
}
header.desktop .phone {
    display: flex;
    gap: 0.5em;
}
header.desktop .phone p {
    font-size: 10px;
    line-height: 12px;
}
header.desktop .phone a {
    color: #000;
    font-size: 20px;
    font-weight: 600;
}

header.desktop.top .right {
    justify-content: space-between;
    align-items: center;
    display: flex;
    gap: 0.5em;
}
header.desktop.top .right button {
    transition: all 0.3s ease-in;
    height: fit-content;
    padding: 0.7em 1em;
    font-weight: 300;
    font-size: 14px;
    color: #fff;
    border: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px 0 #0000001f;

    background-color: var(--colorPrimary);
}
header.desktop.top .right button:last-child {
    background-color: var(--colorMain);
}
header.desktop.top .right button:hover {
    cursor: pointer;
    background-color: var(--colorMain);
}
header.desktop.top .right button:last-child:hover {
    background-color: var(--colorPrimary);
}

header.desktop.bottom .right form input {
    width: 100%;
    cursor: text !important;
    border-radius: var(--border-radius);
}
header.desktop.bottom .right form input, header.desktop.bottom .right form span {
    border: 0 !important;
}
header.desktop.bottom .right form input {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-style: italic;
}
header.desktop.bottom .right form button,
header.desktop.bottom .right form span {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}


/* MENU */
header.desktop.bottom .left ul {
    transition: all 0.3s ease;
}
header.desktop.bottom .left ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1em 0;
    padding: 0;
}

header.desktop.bottom .left a {
    color: #fff;
}
header.desktop.bottom .left li {
    transition: all 0.3s ease-in;

    border-radius: var(--border-radius);
    padding: 0.5em 1em;
}
header.desktop.bottom .left li:hover {
    background-color: var(--colorMainHover);
    cursor: pointer;
}
header.desktop.bottom .left ul.sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

header.desktop.bottom .left li:hover > ul.sub-menu {
    display: block !important;
}

header.desktop.bottom .left ul.sub-menu li {
    display: block;
}

header.desktop.bottom .left ul.sub-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

header.desktop.bottom .left ul.sub-menu a:hover {
    background: #f5f5f5;
}

/* Для анимашки */

/*
 * Стили для гамбургера
 */
header.phone .hamburger {
    display: block;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 15px;
    z-index: 1001;
}
header.phone .hamburger.active {
    position: absolute;
    top: 4em;
    left: calc(80% - 1.5em);
}

header.phone .hamburger-box {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 24px;
}

header.phone .hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

header.phone .hamburger-inner,
header.phone .hamburger-inner::before,
header.phone .hamburger-inner::after {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #000;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

header.phone .hamburger-inner::before,
header.phone .hamburger-inner::after {
    content: "";
    display: block;
}

header.phone .hamburger-inner::before {
    top: -10px;
}

header.phone .hamburger-inner::after {
    bottom: -10px;
}

/* Анимация в крестик */
header.phone .hamburger.active .hamburger-inner {
    transform: rotate(45deg);
}

header.phone .hamburger.active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
}

header.phone .hamburger.active .hamburger-inner::after {
    top: 0;
    transform: rotate(90deg);
    opacity: 0;
}
    
header.phone .menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    transition: left 0.3s ease;
    padding: 80px 20px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
}
    
header.phone .menu.active {
    display: block;
    left: 0;
}
    
header.phone .menu-list ul {
    flex-direction: column;
    gap: 20px;
}
    
header.phone .menu-list li {
    margin: 10px 0;
}
    
header.phone .social {
    margin-top: 30px;
    justify-content: flex-start;
}
    
/* Затемнение фона */
header.phone .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
    
header.phone .menu-overlay.active {
    display: block;
}

/* Анимация появления пунктов меню */
header.phone .menu.active .menu-list li {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

header.phone .menu.active .menu-list li:nth-child(1) { 
    animation-delay: 0.1s;
}
header.phone .menu.active .menu-list li:nth-child(2) { 
    animation-delay: 0.2s;
}
header.phone .menu.active .menu-list li:nth-child(3) { 
    animation-delay: 0.3s;
}
header.phone .menu.active .menu-list li:nth-child(4) { 
    animation-delay: 0.4s;
}
header.phone .menu.active .menu-list li:nth-child(5) { 
    animation-delay: 0.5s;
}
header.phone .menu.active .menu-list li:nth-child(6) { 
    animation-delay: 0.6s;
}
header.phone .menu.active .menu-list li:nth-child(7) { 
    animation-delay: 0.7s;
}
header.phone .menu.active .menu-list li:nth-child(8) { 
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1441px) {
    header.desktop .container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1.5em;
    }
    header.desktop.top .right button {
        padding: 1em 1.2em;
        font-size: 16px;
        font-weight: 500;
    }
}
@media (max-width: 1024px) {
    header.desktop.top .right button {
        padding: 0.5em 0.5em;
        font-size: 12px;
    }
}
@media (max-width: 800px) {
}
@media (max-width: 600px) {
    header.desktop {
        display: none;
    }
    header.phone {
        display: flex;
    }
}
@media (max-width: 450px) {
}
@media (max-width: 380px) {
    header.phone {
        flex-direction: column;
    }
}